package com.abe.abetest.fragment;

import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;

import com.abe.abetest.R;
import com.abe.libbase.base.BaseFragment;
import com.abe.abetest.widget.BottomView;

import butterknife.BindView;
import butterknife.OnClick;

public class abeTestFragment extends BaseFragment {
    @BindView(R.id.item_btn)
    Button itemBtn;

    @Override
    public void init() {
        itemBtn.setText("fragment Pop Window");
    }

    @OnClick({R.id.item_btn})
    public void onViewClick(View view) {
        switch (view.getId()) {
            case R.id.item_btn:
                View contentView = LayoutInflater.from(getContext()).inflate(R.layout.item_view_pop, null);
                BottomView bottomView = new BottomView(this, contentView);
                bottomView.show();
                break;
        }
    }

    @Override
    protected int getLayoutRes() {
        return R.layout.activity_common;
    }
}